Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@remirror/ui
Advanced tools
This library is the base for all the UI (user interface) components and styles within Remirror. It uses @emotion/core
and @styled-system/css
, but was inspired by theme-ui
.
yarn add @remirror/ui @remirror/core @remirror/react
Firstly, create the theme or use a custom theme preset.
sx
The sx
utility comes from the [@styled-system/css
][styled-system/css] package and is intended for use with the Emotion css
prop.
It will attempt to use values from the theme
object for many common CSS properties, and will fall back to raw values when there is no corresponding theme value.
To see a list of supported CSS properties, see the Styled System CSS docs.
sx(styleObject)(theme);
Usage:
/** @jsx jsx */
import { jsx } from '@emotion/core';
<div css={sx(styles)} />;
Argument | Type | Description |
---|---|---|
styleObject | Object | a theme-aware style object with support for responsive array values and Styled System prop shortcuts |
theme | Object | the Emotion theming context object |
FAQs
DEPRECATED - ui utilities for remirror
We found that @remirror/ui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.